<!DOCTYPE html>
<style>
body {
    zoom: 2;
    margin: 0;
}
div {
    -webkit-mask-box-image: -webkit-linear-gradient(left,
        transparent, transparent 10px, black 10px,
        black 90px, transparent 90px, transparent);
    background: linear-gradient(0deg, green, green);
    width: 100px;
    height: 100px;
}
</style>
<div></div>
